import request from '@/utils/request'

export default {

  pageQuery(query) {
    return request({
      url: `/searchMasterMsg/queryPage`,
      method: 'post',
      data: query
    })
  },
  pageQueryPets(query) {
    return request({
      url: `/pet/pageQuery`,
      method: 'post',
      data: query
    })
  },
  handlePets(pet){
    return request({
      url: `/searchMasterMsg/handle`,
      method: 'post',
      data: pet
    })
  },
  onsale(ids){
    return request({
      url: `/pet/onsale`,
      method: 'put',
      data: ids
    })
  },
  offsale(ids){
    return request({
      url: `/pet/offsale`,
      method: 'put',
      data: ids
    })
  },
}
